#ifndef GROUPITEM_H
#define GROUPITEM_H

#include <QObject>

class GroupItem : public QObject
{
    Q_OBJECT

    Q_PROPERTY(QString name READ name WRITE setName NOTIFY dataChanged)
    Q_PROPERTY(int groupId READ groupId)
    Q_PROPERTY(int groupIndex READ groupIndex)
    Q_PROPERTY(int groupPriority READ groupPriority)
public:
    explicit GroupItem(QObject *parent = 0);
    GroupItem(int groupId, QString name, int groupIndex, int groupPriority);
    ~GroupItem();

    QString name();
    int groupId();
    int groupIndex();
    int groupPriority();


signals:
    void dataChanged();


public slots:
    void setName(QString name);

private:
    QString m_Name;
    int m_GroupId;
    int m_GroupIndex;
    int m_GroupPriority;

};


#endif // GROUPITEM_H
